package com.jwthhealth_pub.old.acupressure.view;

import android.app.Activity;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.jwthhealth_pub.R;
import com.jwthhealth_pub.old.common.Constant;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by Administrator on 2017/1/12.
 */
public class MeridianImgActivity extends Activity {

//    @BindView(R.id.iv_photo)
//    PhotoView ivPhoto;
    @BindView(R.id.btn_back)
    ImageView btnBack;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_meridian_img);
        ButterKnife.bind(this);

        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
            getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
        }

        String url = getIntent().getStringExtra(Constant.ACUPRESSUREDATA);

        if (url != null) {
            // TODO: 2017/11/8
//            final PhotoViewAttacher attacher = new PhotoViewAttacher(ivPhoto);
//            ImageLoader.picasso(url, ivPhoto);
        }

    }

    @OnClick(R.id.btn_back)
    public void onClick() {
        finish();
    }
}
